#ifndef __RGB24_VIDEO_H__
#define __RGB24_VIDEO_H__
#ifdef __cplusplus
    extern "C" {
#endif

#include <stdint.h>


struct rgb24_object
{
    char *file_name;

    int32_t file_fd;
    uint32_t file_size;
    uint8_t *file_mem_buffer;

    int32_t pix_height;
    int32_t pix_width;    

    uint8_t *frame_buffer;
    uint32_t frame_len; 
    uint32_t frame_num;   
};

int rgb24_init(struct rgb24_object *rgb);
int rgb24_get_frame(struct rgb24_object *rgb);
int rgb24_deinit(struct rgb24_object *rgb);

#ifdef __cplusplus
    }
#endif
#endif//__RGB24_VIDEO_H__